package com.cskaoyan.app.controller;

import com.cskaoyan.app.bean.bo.adminbo.AdminListBo;
import com.cskaoyan.app.bean.common.BaseRespVo;
import com.cskaoyan.app.bean.common.CommonData;
import com.cskaoyan.app.bean.vo.adminVo.AdminListVo;
import com.cskaoyan.app.service.AdminLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author kiggy
 * @since 2023/01/01 00:32
 */
@RestController
@RequestMapping("admin/log")
public class AdminLogController {

    @Autowired
    AdminLogService logService;

    @GetMapping("list")
    public BaseRespVo list(AdminListBo adminListBo){
        CommonData logInfo = logService.listLog(adminListBo);
        return BaseRespVo.ok(logInfo);
    }

}
